<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        div {
            width: 200px;
            height: 150px;
        }

        .left {
            float: left;
        }

        .right {
            float: right;
        }

        .red {
            background-color: red;
        }

        .blue {
            background-color: blue;
        }

        .pink {
            background-color: pink;
        }

        .yellow {
            background-color: yellow;

        }

        .orange {
            background-color: orange;
        }

        .div {
            width: 300px;
            height: 300px;

        }
    </style>
</head>

<body>
    <div class="red left">1</div>
    <div class="blue left">2</div>
    <div class="pink right">3</div>
    <div class="yellow right">4</div>
    <div class="orange div">5</div>
    <!-- 5是标准流,顶替了原来盒子的位置，出现了叠加 -->
</body>

</html>